<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/WEB-INF/struts-tags.tld"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<link href="<s:url value="/images/08_ccxxzx.css"/>" rel="stylesheet"
			type="text/css" />
		<title>欢迎访问产品运营互动中心！</title>
		<link rel="stylesheet" href="<s:url value="/css/style_new.css"/>">
		<script type="text/javascript"
			src="<s:url value="/script/sysOper.js"/>"></script>
		<script type="text/javascript"
			src="<s:url value="/script/selfResize.js"/>"></script>
			<script language="javascript" src="<s:url value="/components/My97DatePicker/WdatePicker.js"/>" type="text/javascript"></script>
		<script type="text/javascript">
		
	function show(url){
		window.open(url);
	}
	function initLoad(){
		f_iframeResize();
	}
	
	window.onload = initLoad;
	window.setInterval("initLoad()", 200);
	function toSubmit(){
		
	}
</script>
	</head>
	<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
	<s:form id="form1" action="/business/contract/export.action" method="post">
		<table width="980" border="0" cellspacing="0" cellpadding="0"
			align="center">

			<tr>
				<td>
					<table width="100%" border="0" cellpadding="0" cellspacing="0"
						background="<s:url value="/images/new/gxzl_index_2.gif"/>">
						<tr>
							<td width="20" height="32">
								&nbsp;
							</td>
							<td width="20">
								<img src="<s:url value="/images/new/dq_dot.gif"/>" width="15"
									height="12" />
							</td>
							<td>
								当前位置：
								<font color="#003399">合同管理</font>&gt;&gt;归档合同查询
							</td>
							<td width="60"></td>
							<td width="200"></td>
							<td width="100"></td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td background="<s:url value="/images/home_4a.gif"/>">
					<table width="100%" height="400" border="0" cellspacing="0"
						cellpadding="0" align="center" bgcolor="#FFFFFF">
						<tr>
							<td width="240" valign="top" class="leftbg">
							<%@ include file="/commons/include/contract_left.inc" %>
							</td>
							<td valign="top" align="center">
								
									<br />
									<table width=98% border="0" cellspacing="0" cellpadding="0">
										
										<tr>
											<td height="5">
												<table width="100%" border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td width="5" height="5"><img src="<s:url value="/images/cphdzx_tab1.gif"/>" width="5" height="5" /></td>
														<td class="tdborderup"><img src="<s:url value="/images/spacer.gif"/>" width="1" height="1" /></td>
														<td width="5"><img src="<s:url value="/images/cphdzx_tab2.gif"/>" width="5" height="5" /></td>
													</tr>
												</table>
											</td>
										</tr>
										<tr>
											<td class="tdborderleftright">

												<TABLE width="98%" border="0" cellspacing="0"
													cellpadding="0" align="center" class=tablecolor2>
													<tr>
														<td width="14%" height="50">
															<div align="center">
																合同名称
															</div>
														</td>
														<td width="35%">
															<input name="conds.contractName" type="text"
																value="${conds.contractName}" size="30" />
														</td>
														<td width="14%" height="50">
															<div align="center">
																产品类别
															</div>
														</td>
														<td width="35%">
															<s:set name="reftype" value="conds['contractType.id']" />
															<select name="conds['contractType.id']">
																<option value="">
																	请选择
																</option>
																<s:iterator id="rtid" value="contractTypes">
																	<option value="${rtid.id}"
																		<s:if test="#rtid.id==#reftype">selected</s:if>>
																		<s:property value="name" />
																	</option>
																</s:iterator>
															</select>
														</td>
													</tr>
													<tr>
														<td width="14%" height="50">
															<div align="center">
																对方公司名称
															</div>
														</td>
														<td width="35%">
															<input name="conds.signatoriesName" type="text"
																value="${conds.signatoriesName}" size="30" />
														</td>
														<td width="14%" height="50">
															<div align="center">
																合同正式编号
															</div>
														</td>
														<td width="35%">
															<input name="conds.serial" type="text"
																value="${conds.serial}" size="30" />
														</td>
													</tr>
													<tr>
														<td width="14%" height="50">
															<div align="center">
																合同生效时间
															</div>
														</td>
														<td width="35%">
																<input type="text" name="conds.effectTimeBegin" class="Wdate" style="height:22px;width: 120px"
														 onFocus="WdatePicker({isShowClear:true,readOnly:true})" value="${conds.effectTimeBegin}" />
														</td>
														<td width="14%" height="50">
															<div align="center">
																至
															</div>
														</td>
														<td width="35%">
															<input type="text" name="conds.effectTimeEnd" class="Wdate" style="height:22px;width: 120px"
														 onFocus="WdatePicker({isShowClear:true,readOnly:true})" value="${conds.effectTimeEnd }" />
														</td>
													</tr>
													<tr>
														<td width="14%" height="50">
															<div align="center">
																合同顺延日期
															</div>
														</td>
														<td width="35%">
																<input type="text" name="conds.postponeTimeBegin" class="Wdate" style="height:22px;width: 120px"
														 onFocus="WdatePicker({isShowClear:true,readOnly:true})" value="${conds.postponeTimeBegin}" />
														</td>
														<td width="14%" height="50">
															<div align="center">
																至
															</div>
														</td>
														<td width="35%">
															<input type="text" name="conds.postponeTimeEnd" class="Wdate" style="height:22px;width: 120px"
														 onFocus="WdatePicker({isShowClear:true,readOnly:true})" value="${conds.postponeTimeEnd }" />
														</td>
													</tr>
													<tr>
														<td width="14%" height="50">
															<div align="center">
																效力
															</div>
														</td>
														<td width="35%">
															<select name="conds.potency">	
																<option value="">请选择</option>	
																<option value="永久有效" <s:if test='conds.potency == "永久有效"'>selected</s:if> >永久有效</option>						
																<option value="即将失效" <s:if test='conds.potency == "即将失效"'>selected</s:if> >即将失效</option>
																<option value="有效" <s:if test='conds.potency == "有效"'>selected</s:if> >有效</option>
																<option value="失效" <s:if test='conds.potency == "失效"'>selected</s:if> >失效</option>
															</select>
														</td>
														<td width="14%" height="50">
															<div align="center">
																排序条件
															</div>
														</td>
														<td width="35%">
															<select name="orderBy">	
																<option value="">请选择</option>	
																<option value="serial" <s:if test="#request.orderBy=='serial'">selected</s:if> >合同正式编号</option>						
																<option value="effectTime" <s:if test="#request.orderBy== 'effectTime'">selected</s:if> >合同生效时间</option>
																<option value="postponeTime" <s:if test="#request.orderBy == 'postponeTime'">selected</s:if> >顺延终止日期</option>
																<option value="submitTime" <s:if test="#request.orderBy == 'submitTime'">selected</s:if> >归档时间</option>
															</select>
														</td>
													</tr>
												</TABLE>

												<TABLE width="98%" cellSpacing=1 cellPadding=0
													align="center">
													<TR height=30>
														<TD align=left width="10%">
															<input type="button" name="search" onclick="form1.action='listArchiveCountersigned.action';form1.submit();"
																value="查 询">&nbsp;
															<input type="button" name="export" onclick="form1.action='export.action';form1.submit();"
																value="导出Excel">	
															
														</TD>
													</TR>
												</table>
												<input type="hidden" name="pageControl.usePage"
													value="${pageControl.usePage}" />
												<input type="hidden" name="pageControl.pageNo"
													value="${pageControl.pageNo}" />
												<input type="hidden" name="pageControl.totalPage"
													value="${pageControl.totalPage}" />
												<input type="hidden" name="pageControl.pageSize"
													value="${pageControl.pageSize}" />
												<table width="98%" border="0" cellspacing="0"
													cellpadding="7" align="center" class=tablecolor2>
													<tr>
														<td colspan="9" align="right">
															<s:if test="pageControl.useFrontPage">
																<a href="#"
																	onclick="form1.action='listArchiveCountersigned.action';document.all('pageControl.pageNo').value=${pageControl.pageNo-1};submit();">上一页</a>
															</s:if>
															<s:if test="pageControl.useNextPage">
																<a href="#"
																	onclick="form1.action='listArchiveCountersigned.action';document.all('pageControl.pageNo').value=${pageControl.pageNo+1};submit();">下一页</a>
															</s:if>
															第${pageControl.pageNo}页 共${pageControl.totalPage}页
															总${pageControl.total}条记录 每页${pageControl.pageSize}条记录
														</td>
													</tr>
													<tr>
														<td bgcolor="9AC2EB" width="*">
															<div align="center">
																<font color="#FFFFFF">合同名称</font>
															</div>
														</td>
														<td bgcolor="9AC2EB" width="11%">
															<div align="center">
																<font color="#FFFFFF">正式合同编号</font>
															</div>
														</td>
														<td bgcolor="9AC2EB" width="10%">
															<div align="center">
																<font color="#FFFFFF">合同对方</font>
															</div>
														</td>
														<td bgcolor="9AC2EB" width="11%">
															<div align="center">
																<font color="#FFFFFF">合同起草人</font>
															</div>
														</td>
														<td bgcolor="9AC2EB" width="11%">
															<div align="center">
																<font color="#FFFFFF">生效时间</font>
															</div>
														</td>
														<td bgcolor="9AC2EB" width="11%">
															<div align="center">
																<font color="#FFFFFF">到期时间</font>
															</div>
														</td>
														<td bgcolor="9AC2EB" width="11%">
															<div align="center">
																<font color="#FFFFFF">顺延时间</font>
															</div>
														</td>
														<td bgcolor="9AC2EB" width="7%">
															<div align="center">
																<font color="#FFFFFF">效力</font>
															</div>
														</td>
														<td bgcolor="9AC2EB" width="8%">
															<div align="center">
																<font color="#FFFFFF">操作</font>
															</div>
														</td>
													</tr>
													<s:iterator value="pageControl.results" status="st">
														<tr>
															<td>
																<div align="center" >
																	
																	<s:if test='potency == "即将失效"'><font color="Red"><s:property value="contractName" /></font></s:if>
																	<s:else><s:property value="contractName" /></s:else>																	
																</div>
															</td>
															<td>
																<div align="center">
																	<s:property value="serial" />
																</div>
															</td>
															<td>
																<div align="center">
																	<s:property value="signatoriesName" />
																</div>
															</td>
															<td>
																<div align="center">
																	<s:property value="creatorName" />
																</div>
															</td>
															<td>
																<div align="center">
																	<s:date name="effectTime" format="yyyy-MM-dd" />
																</div>
															</td>
															<td>
																<div align="center">
																	<s:date name="maturityTime" format="yyyy-MM-dd" />
																</div>
															</td>
															<td>
																<div align="center">
																	<s:date name="postponeTime" format="yyyy-MM-dd" />
																</div>
															</td>
															<td>
																<div align="center">
																	<s:property value="potency" />
																</div>
															</td>
															<td>
																<div align="center">
																	<s:if test="#request.isMange==true||#request.currUser==creator">
																	<a href="editContractInfo.action?contractInfo.id=${id}&flag=2&isEdit=true">编辑</a>
																	</s:if>
																	<s:else>
																	<a href="editContractInfo.action?contractInfo.id=${id}&flag=2&isEdit=false">查看</a>
																	</s:else>
																	
																	<!--a href="delContractInfo.action?contractInfo.id=${id}&flag=2">删除</a-->
																</div>
															</td>
														</tr>
													</s:iterator>
													<tr>
														<td colspan="9" align="right">
															<s:if test="pageControl.useFrontPage">
																<a href="#"
																	onclick="form1.action='listArchiveCountersigned.action';document.all('pageControl.pageNo').value=${pageControl.pageNo-1};submit();">上一页</a>
															</s:if>
															<s:if test="pageControl.useNextPage">
																<a href="#"
																	onclick="form1.action='listArchiveCountersigned.action';document.all('pageControl.pageNo').value=${pageControl.pageNo+1};submit();">下一页</a>
															</s:if>
															第${pageControl.pageNo}页 共${pageControl.totalPage}页
															总${pageControl.total}条记录 每页${pageControl.pageSize}条记录
														</td>
													</tr>
													
												</table>
											</td>
										</tr>
										<tr>
											<td height="5">
												<table width="100%" border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td width="5" height="5"><img src="<s:url value="/images/cphdzx_tab3.gif"/>" width="5" height="5" /></td>
														<td class="tdborderbottom"><img src="<s:url value="/images/spacer.gif"/>" width="1" height="1" /></td>
														<td width="5"><img src="<s:url value="/images/cphdzx_tab4.gif"/>" width="5" height="5" /></td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
									</td>
									</tr>
									</table>
									</td>
									</tr>
									</table>
								
								</s:form>
	</body>
</html>
<script>

var obj1=document.getElementById("iTR6");
if(obj1){
	obj1.style.backgroundColor="B3DEF4";
}
</script>